package edu.upenn.yas;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class Homepage extends ActionSupport {
  
    private List<String> threeUsers = null;
    private List<String> threePosts = null;

    // Default getter: all the work is done in getAllUsers
    public String execute() { 
        threeUsers = QueryEngine.instance.getThreeRandomUsers();
        threePosts = QueryEngine.instance.getTopThreePosts();	  
        return SUCCESS;
    } 

}
